<script setup>
import router from '@/router'
const handleFriendCircle = () => {
  router.push('/friend-cicle')
}
</script>

<template>
  <NavBarHeader>
    <template #title>发现</template>
  </NavBarHeader>
  <div class="contact-list">
    <ul>
      <li class="contact-item">
        <img
          src="https://zzb-chat.oss-cn-beijing.aliyuncs.com/images.jpg"
          alt="头像"
          class="avatar"
        />
        <div class="contact-info" @click="handleFriendCircle">
          <p style="color: #000" class="nickname">朋友圈</p>
        </div>
      </li>
    </ul>
  </div>
</template>

<style scoped>
.contact-list {
  padding: 10px;
}

.contact-item {
  display: flex;
  align-items: center;
  padding: 10px;
  margin-bottom: 10px; /* 每个联系人之间的间距 */
  border-radius: 8px; /* 圆角 */
  background-color: #fff; /* 背景颜色 */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 阴影效果 */
  transition: all 0.3s ease; /* 过渡效果 */
}
.contact-item:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* 悬停时的阴影效果 */
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.contact-info {
  flex-grow: 1; /* 使信息部分占据可用空间 */
}

.nickname {
  font-size: 16px;
  font-weight: bold;
  color: #000;
}
</style>
